package com.ibeifeng.thread;

public class TestThread01 {
	public static void main(String[] args) {
		new TestThread01().begin();
		for(int i=0;i<10;i++){
			System.out.println("main:"+i);
		}
	}
	
	public void begin(){
		FirstThread ft = new FirstThread();
		ft.start();
	}
	
	class FirstThread extends Thread{
		@Override
		public void run() {
			for(int i=0;i<10;i++){
				System.out.println("ft:"+i);
			}
		}
	}
}
